import request from '@/utils/request'

let villageApi = {

  /*添加*/
  addvillage(data, errorback) {
    return request._post('/shop/village.village/add', data, errorback);
  },

  /*详情*/
  villageDetail(data, errorback) {
    return request._get('/shop/village.village/edit', data, errorback);
  },

  
  /*编辑*/
  editvillage(data, errorback) {
    return request._post('/shop/village.village/edit', data, errorback);
  },

  /*删除*/
  deletevillage(data, errorback) {
    return request._post('/shop/village.village/delete', data, errorback);
  },

  /*配送员列表*/
  villagelist(data, errorback) {
    return request._post('/shop/village.village/index', data, errorback);
  },


  

}

export default villageApi;
